﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AzureGames.Model
{
    /// <summary>
    /// A user of AzureGames.
    /// </summary>
    public class User : Player
    {
        //Need empty constructor for automapper to function, please don't remove
        public User() : base(Guid.Empty.ToString(), null, Player.User)
        {
        }

        public User(string id, string playerName)
            : base(id, playerName, Player.User)
        {

        }

        public User(string id, string nameIdentifier, string firstName, string lastName, string email, string playerName)
            : base(id, playerName, Player.User)
        {
            NameIdentifier = nameIdentifier;
            FirstName = firstName;
            LastName = lastName;
            Email = email;
        }

        public string NameIdentifier { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Email { get; set; }
        public DateTime? LastLogin { get; set; }
        public DateTime? LastGamePlayed { get; set; }
        public DateTime? LastContributeDate { get; set; }
        public string LoginType { get; set; }
    }
}
